<?php
namespace app\mobile\model;

/**
 * Class MemberOrderAttached
 * @package app\mobile\model     订单附属表
 */
class MemberOrderAttached extends BaseModel
{
    //附属订单和商品多对一   (评价用)
    public function shopGoods()
    {
        return $this->belongsTo('ShopGoods','goods_id','id')->field('id,thumb_img');
    }
    //附属订单和主订单多对一  (评价用)
    public function memberOrder()
    {
        return $this->belongsTo('MemberOrder','order_id','id')->field('id,shop_id');
    }
}